<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$config['website']['DEFAULT_TITLE']}}后台登录</title>
</head>
<style type="text/css">
@charset "utf-8";
/*********************************admin*************************/
*{margin:0; padding:0; font-size:12px;}
img{border:0; cursor:hand;}
td{height:40px; line-height:20px;}
#header{height:70px; width:100%; margin:0 auto; background:url(/assets/images/bg.png) repeat-x 100px -10px;}
#login{width:380px; margin:100px auto;}
.l-t1{background:url(/assets/images/bgpic1.gif) no-repeat -12px -56px; height:10px;}
.l-main{background:url(/assets/images/login-middle.gif) repeat-y -2px; height:200px;}
.l-b1{background:url(/assets/images/bgpic1.gif) no-repeat -12px -82px; height:10px;}
.l-ico{background:url(/assets/images/bgpic1.gif) no-repeat -250px -110px; padding-left:55px; font-size:14px; font-weight:bold;}
.l-text1{font-size:12px; padding-left:50px;}
.l-text1-input{width:172px;border:#0a8fda 1px solid;background-color:#E8F9FF;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;padding:5px 3px; font-weight:bold;}
.l-text2-input{width:60px;font-size:14px;border:1px solid #84a1bd;padding:3px 3px;}
.l-btn{text-align:center;}
#footer{height:70px; width:100%; margin:0 auto; background:url(/assets/images/bg.png) repeat-x bottom center;}
.copy{padding-top:50px; text-align:center; color:#999;}
.red{font-size:12px;color:red}
.FCKBtn {width: 50px;background: #FFFFFF url(/assets/images/btn_search.gif) no-repeat center center;padding: 1px;border: 1px solid #333333;color: #FFFFFF;}
</style>
<body>
<div id="header"></div>
<div id="login">
    <div class="l-t1"></div>
    <div class="l-main">
        <form action="" name="form1" class="login"  method="post" onsubmit="return check(this)">
            <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td colspan="2" class="l-ico">系统登录</td>
                    <td width="34%" class="red"></td>
                </tr>
                <tr>
                    <td width="34%" class="l-text1">用户名：</td>
                    <td colspan="2"><input type="text" name="username" class="l-text1-input" /></td>
                </tr>
                <tr>
                    <td class="l-text1">密 码：</td>
                    <td colspan="2"><input type="password" name="pass" class="l-text1-input" /></td>
                </tr>
				{{if $config['website']['LOGIN_CODE']}}
               <tr>
                    <td class="l-text1">验证码：</td>
                    <td width="20%"><input type="text" name="yzcode" class="l-text2-input" /></td>
                    <td width="46%"><img src="{{$codeurl}}" title="点击更换" onclick="this.src='{{$codeurl}}'+Math.random()" width="80" height="30" /></td>
                </tr>
				{{/if}}
                <tr>
                    <td colspan="3" class="l-btn">
                    <input name="submit" class="FCKBtn" type="submit" value="登录"/>
                    <input name="reset" class="FCKBtn" type="reset" value="取消" /> 
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div class="l-b1"></div>
</div>
<div id="footer">
    <p class="copy"><span></span> </p>
</div>
</body>
<script language="javascript" type="text/javascript">
function check(obj){
	if(obj.username.value =="") {
		window.alert("用户名不能为空!");
		obj.username.focus();
		return false;
	}
	if( obj.password.value =="") {
		window.alert("密码不能为空!");
		obj.password.focus();
		return false;
	}
	return true;
}
</script>
</html>
